package kr.hkit.powerjava.chapter04;

import java.util.Scanner;

public class Programming2 {

	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);

		System.out.print("손님이 구입한 상품의 가격을 입력하시오: ");
		int price = input.nextInt();
		
		System.out.print("손님한테 받은 금액을 입력하시오: ");
		int customer = input.nextInt();
		
		double tax = price * 0.1;
		int change = customer - price;
		
		System.out.println("받은 돈: " + customer);
		System.out.println("상품의 총액: " + price);
		System.out.println("부가세: " + tax);
		System.out.println("잔돈: "+ change);
	}
}
